<template>
	<view>
		<van-submit-bar bar-class="submit-bar" button-text="立即发布" @submit="submit">
			<view>
				<text class="t-bold">需支付</text>
				<text class="t-18 color2 t-bold">￥{{price ? price:0}}</text>
			</view>
		</van-submit-bar>
	</view>
</template>

<script>
	export default {
		name: "ppl-pay",
		props: {
			price: {
				type: String || Number,
				default: 0
			}
		},
		data() {
			return {

			};
		},
		methods: {
			submit() {
				this.$emit('submit')
			}
		}
	}
</script>

<style scoped>
	.submit-bar {
		box-shadow: 0px -3px 2px -1px rgba(0, 0, 0, 0.1);
	}
</style>